﻿using System;
using Ext.Net;
using Ext.Net.MVC;
using Sharp.Portal;
using Sharp.Portal.Mvc.List;
using Sharp.Portal.Other;
using Column = Ext.Net.MVC.ColumnAttribute;
using DateColumn = Ext.Net.MVC.DateColumnAttribute;
namespace Sharp.WebBooter.Areas.Platform.Models
{
    [Title("消息管理")]
    [DataHandler(ModuleOP.Details, "浏览", 0)]
    [DataHandler(ModuleOP.Create, "新增", 1)]
    [DataHandler(ModuleOP.Edit, "修改", 2)]
    [DataHandler(ModuleOP.Delete, "删除", 3)]
    [DataHandler(ModuleOP.Refresh, "刷新", 4)]
    public partial class MessageIndexModel : Sharp.Portal.ExtNet.ExtSharpList
    {
        public MessageIndexModel()
        {
            this.Feature = ListFeature.MultiSelect | ListFeature.Paging | ListFeature.RowNumber;

        }

        /// <summary>
        /// 主键
        /// </summary>
        [Column(Hidden = true)]
        public int Id { get; set; }
        /// <summary>
        /// 发件人
        /// </summary>
        [Column(Width = 200, Text = "发件人")]
        public string SenderName { get; set; }
        /// <summary>
        ///     左边树形菜单
        /// </summary>
        public Node LeftTree { get; set; }
        /// <summary>
        /// 内容
        /// </summary>
        [Column(Width = 300, Text = "内容"), QueryOption(Option = QueryFeature.DefualtQuery)]
        public string Content { get; set; }
        /// <summary>
        /// 发布时间
        /// </summary>
        [DateColumn(Width = 144, Text = "发布时间")]
        public string PublishTime { get; set; }
    }
}
